import {Link} from 'umi';
import { UserAPI } from '@/utils';
function UserList(){
    let users = UserAPI.list();
    return (
      <ul>
        {
          users.map(user=>(
            <li key={user.id}>
              <Link to={`/user/detail/${user.id}`} state={user}>
                {user.username}
              </Link>
            </li>
          ))
        }
      </ul>
    )
}
export default UserList;